


<fieldset class="layui-elem-field layui-field-title" >
    <legend>进行中的项目</legend>
</fieldset>
<!-- TODO 备注一下
//这里显示的是近7天订单的完成状况。目前是最后处理完所有订单的话，都会是中间的待完成待发货，都是0-->
<!--//是否应该显示当天订单的固定值。例如有多少张单是当天完成的。-->


<div class="layui-form">
    <table class="layui-table">
        <colgroup>
            <col width="80">
            <col width="300">
            <col width="100">
            <col >
            <col >
            <col width="280">
        </colgroup>
        <thead>
        <tr>
            <th>序号</th>
            <th>姓名</th>
            <th>状态</th>
            <th>开始时间-结束时间</th>
            <th>报价人数</th>
            <th>操作</th>
        </tr>
        </thead>
        <tbody>



        <? foreach($member_contact as $k=>$v){?>

            <tr id="item<?echo $v['nid']?>" <?if($applymodify['nid']){echo "style='color:red'";$status="审核中";}else{$status="正常";}?>>


                <td><?echo $i+1+$plate['page_list_num']*($nowpageid-1) ?></td>
                <td>
                    <a href="../../unit/view/detail-statistic.php?sys_part=unit&nid=<?echo $v['nid']?>">
                        <?echo $v['name']?>
                    </a>
                </td>

                <td><span  <?if($v['status']=='进行中'){echo "class='layui-badge'  style='background-color:#ff9900'";}?>> <?echo $v['status']?></span></td>

                <td><?echo substr($v['startdate'],0,10)?> - <?echo substr($v['enddate'],0,10)?>
                    <span class="layui-badge layui-bg-green"><?echo count_days($v['startdate'],$v['enddate'])?>日</span>
                </td>



                <!--    用count by iem 去统计多少企业报价-->
                <td><?echo count(select_lines_all_items($table_prefix."quotation_detail","nid","case_nid = '{$v['nid']}' group by unit_nid",''))?></td>









                <td>


                    <a href="../../case/view/detail-info.php?&nid=<? echo $v['nid']?>
<?echo $pagenumber_url.$sortby_url.$navitemed_url.$system_part ?><?echo $url_str?>"
                       class="layui-btn  layui-btn-sm" target="_blank" ><i class="layui-icon">&#xe621;</i>信息</a>



                </td>
            </tr>
        <?}?>




        </tbody>
    </table>
</div>